import 'package:dio/dio.dart';
import 'initDio.dart';
import 'AdApi.dart';
import 'CourseApi.dart';
import 'UserApi.dart';

class API {
  Dio? _dio ;
  API() {
    _dio = initDio()!;
  }

  // 广告接口
  AdAPI get ad => AdAPI(_dio);

  // 课程接口
  CourseAPI get course => CourseAPI(_dio);         
  
  // 用户接口
  UserApi get user => UserApi(_dio);
  
}